package cn.schoolwow.ams.module.block.listBlock.clazzBlock.initial.service;

import cn.schoolwow.ams.module.block.listBlock.clazzBlock.initial.flow.CheckClazzListBlockOptionFlow;
import cn.schoolwow.ams.module.block.listBlock.clazzBlock.initial.flow.SetClazzListBlockContextListFlow;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class InitialClazzListBlockListFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        flowContext.startFlow(new CheckClazzListBlockOptionFlow())
                .next(new SetClazzListBlockContextListFlow())
                .execute();
    }

    @Override
    public String name() {
        return "初始化ClazzListBlock类型页面";
    }

}
